#=============================================================================
# StripExperiment PROJECT's MAKEFILE of souce/main
# 
# this makefile is to create dependence file for object/depends
#
# author suzuki ryoutoku
#=============================================================================


#=============================================================================
# To set value
#=============================================================================
# this directory has source files.
sources := main.cpp

# output file
dependfile := $(patsubst %.cpp,%.d,$(sources))

# search output file place
vpath %.d $(depends_directory)


#=============================================================================
# target & rule
#=============================================================================

# main target
all : $(dependfile) TEST

# output console parameter in this makefile
TEST :;
	@echo "souce files = $(sources)"
	@echo "depend files = $(dependfile)"

# create dependence file
%.d : %.cpp
	$(CC) -MM -I$(source_directory) -I$(library_directory) $^ > $(depends_directory)/$@
